package com.ruoyi.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.api.domain.ShoppingCart;
import com.ruoyi.api.vo.ShoppingCartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {

    List<ShoppingCartVo> selectData(@Param("userId") Long userId);

    ShoppingCart selectByUserIdAndProductId(@Param("productId") Integer productId, @Param("userId") Integer userId);
}
